import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.mededia.pojo.WmUser;
import com.itheima.feigns.WemediaFeign;
import com.itheima.user.UserApplication;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Component;

@SpringBootTest(classes = UserApplication.class)
public class test {
@Autowired
    private WemediaFeign wemediaFeign;
@Test
public void test1(){
    ResponseResult<WmUser> s2e = wemediaFeign.findByName("s2e");
    System.out.println(s2e.getData());
}

}
